
import { createRouter, createWebHistory } from 'vue-router'

// @ts-ignore
import routes from '~pages'

console.log(routes)
const router = createRouter({
  history: createWebHistory(),
  routes: [
    { path: '/', redirect: '/docs/guide' },
    {
      path: '/404',
      name: 'NotFound',
      meta: {
        title: 'Page not found',
        isLogin: false,
      },
      component: () => import('@/views/NotFound/index.vue'),
    },
    ...routes,
    {
      path: '/:pathMatch(.*)*',
      redirect: '/404',
    },
  ],
})

export default router

